//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "fn_addHealAction.sqf"
#include <btc_macros.h>
TRACE_1("Start",_this);

if (isDedicated) exitWith {};

private ["_vec","_action"];
DEFAULT_PARAM(_vec,0,objNull);
_action = _vec getVariable ["BTC_HealSelf_Action",-1];
if (_action < 0) then {
	_action = _vec addAction [RED_TEXT(localize "STR_BTC_HEALSELF"),{(_this select 3) call FUNC(selfHeal);},[], 8, false, true, "", "alive _target && (damage player >= 0.05) && alive player && (player == vehicle player)"];
	_vec setVariable ["BTC_HealSelf_Action",_action];
	TRACE_1("Added Action",_action);
};
TRACE("End");